#include "NetworkMenuModel.h"

NetworkMenuModel::NetworkMenuModel(void)
{
  //BIG_TODO : Set this to the game state for network menu
  _defaultGameState = GameState::NetworkMenu;
  _selectedMenuItem = 0;
}

NetworkMenuModel::~NetworkMenuModel(void)
{
  Eradicate();
}

void NetworkMenuModel::Eradicate(void)
{
  return;
}

GameState NetworkMenuModel::SendGameMessage(Message* m)
{
  return _defaultGameState;
}

int NetworkMenuModel::GetSelectedMenuItem(void)
{
  return _selectedMenuItem;
}

void NetworkMenuModel::IncrementMenuItemDown(void)
{
  if(_selectedMenuItem == 2)
  {
    _selectedMenuItem = 0;
  }
  else
    _selectedMenuItem++;
}

void NetworkMenuModel::IncrementMenuItemUp(void)
{
  if(_selectedMenuItem == 0)
  {
    _selectedMenuItem = 2;
  }
  else
    _selectedMenuItem--;
}
